import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home-view/HomeView'
import LoginView from '@/views/account-views/LoginView'
import RegisterView from '@/views/account-views/RegisterView'
import ChangePwdView from '@/views/account-views/ChangePwdView'
import PaperView from '@/views/paper-view/PaperView'
import AccountInfoView from '@/views/account-manage-views/account-info-view/AccountInfoView'
import StarScholarView from '@/views/account-manage-views/star-scholar-view/StarScholarView'
import StarPaperView from '@/views/account-manage-views/star-paper-view/StarPaperView'
import AdminHomeView from '@/views/admin-views/admin-home-view/AdminHomeView'
import AdminReviewClaimView from '@/views/admin-views/admin-review-claim-view/AdminReviewClaimView'
import SearchView from "@/views/search-view/SearchView.vue";
import ScholarView from "@/views/scholar-view/ScholarView.vue";
import Venue from "@/views/venue.vue";

const routes = [{
        path: '/',
        name: 'home',
        component: HomeView
    },
    {
        path: '/login',
        name: 'login',
        component: LoginView
    },
    {
        path: '/register',
        name: 'register',
        component: RegisterView
    },
    {
        path: '/changepwd',
        name: 'change-pwd',
        component: ChangePwdView
    },
    {
        path: '/paper',
        name: 'paper',
        component: PaperView
    },
    {
        path: '/search',
        name: 'search',
        component: SearchView
    },
    {
        path: '/scholar',
        name: 'scholar',
        component: ScholarView
    },
    {
        path: '/account/info',
        name: 'account-info',
        component: AccountInfoView
    },
    {
        path: '/account/star/scholar',
        name: 'star-scholar',
        component: StarScholarView
    },
    {
        path: '/account/star/paper',
        name: 'star-paper',
        component: StarPaperView
    },
    {
        path: '/admin',
        name: 'admin-home',
        component: AdminHomeView
    },
    {
        path: '/admin/reviewclaim',
        name: 'admin-review-claim',
        component: AdminReviewClaimView
    },
    {
        path: '/venue',
        name: 'venue',
        component: Venue
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router